<link rel="stylesheet" href="css/receiveStands/orderReceiving.css">
<div class="orderReceiving-details y-content-box "><!--ng-show="caseSourcesParticulars"-->
  <div class="orderReceiving-details-top">
    <p class="fl" ng-click="orderReceivingDSkip()" style="cursor: pointer;"><i class="iconfont">&#xe6a5;</i>返回</p>
    <span>案源编号：{{consultOrderInfoList.consultOrder.id}}</span>
  </div>
  <div class="orderReceiving-details-content">
    <p class="details-content-top clearfix">
      <span></span>
      案源信息
    </p>
    <div class="clearfix">
      <p><span>服务项：</span>{{consultOrderInfoList.caseSource.servicetypename}}</p>
      <p><span>业务类型：</span>{{consultOrderInfoList.businesstypeName}}</p>
    </div>
    <div class="clearfix">
      <p ng-if="consultOrderInfoList.caseSource.servicetype != 1"><span>服务价格：</span>{{consultOrderInfoList.caseSource.businessprice}}</p>
      <p ng-if="consultOrderInfoList.caseSource.servicetype != 1"><span>服务编号：</span>{{consultOrderInfoList.caseSource.serviceid}}</p>
    </div>
    <div class="clearfix"  ng-show="(consultOrderInfoList.caseSource.servicetype != 1 && consultOrderInfoList.caseSourceFileList[0].attrfilename)">
      <p class="d-fj-c"><span>附件：</span><label style="cursor: pointer;" ng-click="downloadSFileProgress(consultOrderInfoList.caseSource.id, consultOrderInfoList.caseSourceFileList[0].attrfilename)">{{consultOrderInfoList.caseSourceFileList[0].attrfilename}}</label></p>
    </div>
    <div class="orderReceiving-details-describe clearfix">
      <span>需求描述：</span>
      <div class="caseSo-det-desT fl">
        <p>{{consultOrderInfoList.caseSource.consultcontent}}</p>
      </div>
    </div>

  </div>
  <div class="orderReceiving-details-content" ng-show="consultOrderInfoList.caseSource.servicetype != 1">
    <p class="details-content-top clearfix">
      <span></span>
      客户信息
    </p>
    <div class="clearfix">
      <p><span>客户名称：</span>{{consultOrderInfoList.caseSource.customername}}</p>
      <p ng-if="consultOrderInfoList.caseSource.customertype == 2"><span>联系人：</span>{{consultOrderInfoList.caseSource.customercontactname}}</p>
    </div>
    <div class="clearfix">
      <p><span>客户类型：</span>{{consultOrderInfoList.caseSource.customertype == 1?'个人':'企业'}}</p>
      <p><span>联系方式：</span>{{consultOrderInfoList.caseSource.customerphone}}</p>
    </div>
  </div>
  <div class="orderReceiving-details-word">
    <p class="details-content-top clearfix">
      <span></span>
      {{consultOrderInfoList.caseSource.servicetype==1?'律师解答':'服务记录'}}
    </p>
    <div class="o-details-word">
      <div ng-repeat="item in consultOrderInfoList.consultOrderMsgList">
        <p>{{item.createddate | date:'yyyy年MM月dd日 HH:mm'}}</p>
        <div>
          <p>{{item.message}}</p>
          <div ng-show="(consultOrderInfoList.caseSource.servicetype != 1 && item.attrfilename != '' && item.attrfilename != null)">附件： <span style="cursor: pointer;" ng-click="downloadFileProgress(item)">{{item.attrfilename}}</span></div>

          <div class="orderReceivingPortrait" ng-if="item.type == 1">
            <p></p>
            <span>客户</span>
          </div>

          <div class="orderReceivingPortraitT" ng-if="item.type == 2">
            <p></p>
            <span>我</span>
          </div>
        </div>
      </div>

    </div>
    <div class="o-details-edit" ng-show="!(consultOrderInfoList.consultOrder.status==3 || consultOrderInfoList.consultOrder.status==4)">
        <div>
           <textarea name="" id="" cols="" rows="6" placeholder="律师回复......"   maxlength="500" ng-model="message"></textarea>
          <div class="o-details-edit-t clearfix">
              <input ng-show="(consultOrderInfoList.caseSource.servicetype != 1 && isShowUploadFile)" type="file" ng-model="addConsultOrderMsgList.picFile" ngf-select="selectFile(addConsultOrderMsgList.picFile)" ngf-model-invalid="errorFileShow"  ngf-max-size="6MB" ngf-accept="'.pdf,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.jpg,.png,.mp3,.mp4'">
              <i ng-show="(consultOrderInfoList.caseSource.servicetype != 1 && isShowUploadFile)" class="iconfont" >&#xe67d;</i>
              <label ng-show="(consultOrderInfoList.caseSource.servicetype != 1 && isShowUploadFile)">添加附件</label>
              <span ng-show="(consultOrderInfoList.caseSource.servicetype != 1 && isShowUploadFile)" >（目前支持pdf,doc,docx,ppt,pptx,xls,xlsx,jpg,png,mp3,mp4格式）</span>
              <span style="font-size: 14px;color: #383838;" ng-show="!isShowUploadFile">{{selectFileNmae}}</span>
              <span class="w_deleteAttachment" ng-show="!isShowUploadFile"><i ng-click="removeFile()">x</i></span>
            <button class="d-sou-btn d-sou-btn-j" ng-click="addConsultOrderMsg(consultOrderInfoList.caseSource.serviceid,addConsultOrderMsgList.picFile)">回复</button>
          </div>
          <div class="orderReceivingPortraitT">
            <p></p>
            <span>我</span>
          </div>
        </div>
    </div>
    <div class="o-details-floor clearfix" ng-show="(consultOrderInfoList.caseSource.servicetype != 1 && consultOrderInfoList.consultOrder.status==21 )">
      <span></span>
      <p>如已解决客户需求，点击下方提交验收按钮，等待客户确认验收{{consultOrderInfoList.consultOrder.status}}</p>
      <div>
        <i class="iconfont">&#xe673;</i>
        <button class="d-sou-btn d-sou-btn-j" ng-click="getConsultOrderId()">提交验收</button>
      </div>
    </div>
  </div>

</div>
<!--详情面板 end-->

<!-- 提交验收 -->
<div class="modal fade" id="submit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document" style="width: 412px;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="iconfont" aria-hidden="true">&#xe683;</i></button>
        <h4 class="modal-title" style="text-align: center;">提交验收</h4>
      </div>
      <div class="modal-body" style="font-size: 12px;color: #313131;letter-spacing: 0;line-height: 22px;">
        提交验收后，用户会对您的服务进行评价，是否确认提交验收？
      </div>
      <div class="modal-footer">
        <button type="button" class="closeBtn" ng-click="sumbitAccept()">确定</button>
        <button type="button" class="closeBtn closeBtn_cancel" data-dismiss="modal">取消</button>
      </div>
    </div>
  </div>
</div>

<script>
  $(window).ready(function () {

    /*设置屏幕高度*/
    setHeight();
    function setHeight() {
      var minHeight = $(window).height()-130 + 'px';
      $(".y-content-box").css("height",minHeight);
    };
    $(window).resize(function() {
      setHeight();
    });
  })
</script>
